package com.dragon.modules.yuegou.excel.member;

import com.dragon.modules.media.annotations.ExcelSheet;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.time.LocalDate;
import java.util.List;

@com.dragon.modules.media.annotations.ExcelWorkbook(template = "classpath:\\excel\\member\\exportMember.xlsx")
public class ExportMemberWorkbook {
	@ExcelSheet
	@JsonProperty("会员表")
	private List<MemberRow> member;

	public static class MemberRow {
		@JsonProperty("用户名")
		private String nickName;

		@JsonProperty("*手机号")
		private String mobile;
		
		@JsonProperty("性别")
		private String gender;

		@JsonProperty("生日(例如：1999/8/3)")
		private LocalDate birthDay;

		@JsonProperty("地址（例如：长沙）")
		private String address;

		public String getNickName() {
			return nickName;
		}

		public void setNickName(String nickName) {
			this.nickName = nickName;
		}

		public String getMobile() {
			return mobile;
		}

		public void setMobile(String mobile) {
			this.mobile = mobile;
		}

		public String getGender() {
			return gender;
		}

		public void setGender(String gender) {
			this.gender = gender;
		}

		public LocalDate getBirthDay() {
			return birthDay;
		}

		public void setBirthDay(LocalDate birthDay) {
			this.birthDay = birthDay;
		}

		public String getAddress() {
			return address;
		}

		public void setAddress(String address) {
			this.address = address;
		}
	}

	public List<MemberRow> getMember() {
		return member;
	}

	public void setMember(List<MemberRow> member) {
		this.member = member;
	}
}
